// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.chimi.dto.LuckAwardBrowserDto;
import com.liuxinlong.modules.dao.BarLuckAwardDao;
import com.liuxinlong.modules.entity.BarLuckAward;
import com.liuxinlong.modules.mapper.BarLuckAwardMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年8月8日
 */
@Service
public class BarLuckAwardDaoImpl extends ServiceImpl<BarLuckAwardMapper, BarLuckAward> implements BarLuckAwardDao {

    @Override
    public List<BarLuckAward> pageBarLuckAwardList(Map<String, Object> queryParam) {
        return baseMapper.pageBarLuckAwardList(queryParam);
    }

    @Override
    public int getBarLuckAwardCount(Map<String, Object> queryParam) {
        return baseMapper.getBarLuckAwardCount(queryParam);
    }

    @Override
    public int getUsedCount(String awardId) {
        return 0;
    }

    @Override
    public void deleteByLuckId(String luckId) {
        baseMapper.deleteByLuckId(luckId);
    }

    @Override
    public List<LuckAwardBrowserDto> getLuckAwardBrowserList(String luckId) {
        return baseMapper.getLuckAwardBrowserList(luckId);
    }

    @Override
    public List<BarLuckAward> getLuckAwardList(String luckId) {
        return baseMapper.getLuckAwardList(luckId);
    }

    @Override
    public BarLuckAward getLuckPresent(String luckId, String presentId) {
        return baseMapper.getLuckPresent(luckId,presentId);
    }
}
